<script>
    $(document).ready(function(){
        $("#idata").datepicker({dateFormat: "dd/mm/yyyy"});
        $('.cancela').click(function(){
           $('#areaTroca').fadeOut(600);
        });
        
        $('#mostraSenha').mouseenter(function() {
            $('#isenha').attr('type','input');
        }).mouseleave(function() {
            $('#isenha').attr('type','password');
        });
        
    });
</script>
<?php echo form_open('membro/cadastrandoMembro');?>   
<h1>Novo Membro</h1><hr>
<table class='tabulacao'>
    <tr>
        <td>
            <?php echo form_label('Nome:', 'nome');?>
            <?php echo form_input('nome', '', 'id= inome autofocus');?>
        </td>
        <td>
            <?php echo form_label('Diretoria:', 'diretoria');?>
            <?php echo form_dropdown('diretoria', $diretorias, '', 'idiretoria');?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_label('E-mail:', 'iemail');?>
            <?php echo form_input('email', '', 'id=iemail');?>
        </td>
        <td>
            <?php echo form_label('Cargo:', 'cargo');?>
            <?php echo form_dropdown('cargo', $cargos, '', 'icargo');?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_label('Login:', 'login');?>
            <?php echo form_input('login', '', 'ilogin');?>
        </td>
        <td>
            <?php echo form_label('Senha:', 'senha');?>
            <?php echo form_password('senha', '', 'id="isenha"');?> 
            <span id="mostraSenha">Mostrar Senha</span>
        </td>
    </tr>
    <tr>
        <td><?php echo form_submit('','Cadastrar');?></td>
        <td><?php echo form_button('','Cancelar','class=cancela');?></td>
    </tr>
</table> 
<?php echo form_fieldset_close();?>
    
<?php form_close();?>
